import regex
__author__="jregent"
__date__ ="$18.1.2009 21:58:02$"

emailExpr = Regex(r"(?P<user>[A-Za-z0-9._%+-]+)@(?P<hostname>[A-Za-z0-9.-]+)\.(?P<domain>[A-Za-z]{2,4})")
print emailExpr.parseString("paul@users.sourceforge.net").dump()